namespace KPIS.GERP.Models.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class update0031 : DbMigration
    {
        public override void Up()
        {
            AddColumn("dbo.IcmBidderCollateral", "PurchaseOrder_PoId", c => c.Int());
            AddForeignKey("dbo.IcmBidderCollateral", "PurchaseOrder_PoId", "dbo.IcmPurchaseOrder", "PoId");
            CreateIndex("dbo.IcmBidderCollateral", "PurchaseOrder_PoId");
        }
        
        public override void Down()
        {
            DropIndex("dbo.IcmBidderCollateral", new[] { "PurchaseOrder_PoId" });
            DropForeignKey("dbo.IcmBidderCollateral", "PurchaseOrder_PoId", "dbo.IcmPurchaseOrder");
            DropColumn("dbo.IcmBidderCollateral", "PurchaseOrder_PoId");
        }
    }
}
